<template>
	<view class="box">
		<view class="header-box">
			<view class="header">
				<view class="header-content">
					<view class="personal-information">
						<text>姓名：{{Data.list.name}}</text>
						<text>性别：{{Data.list.sex}}</text>
						<text>年龄：{{Data.list.age}}</text>
					</view>
					<view class="date">
						<text>接诊日期：{{Data.data.medicalRecordDate}}</text>
					</view>
					<view class="information">
						<text>开单科室：{{Data.data.openBillingDepartment}}</text>
						<text>开单医生：{{Data.data.doctor}}</text>
					</view>
				</view>
			</view>
		</view>
		<view class="content">
			<text>{{Data.data.content}}</text>
			<text>记录医师：{{Data.data.doctor}}</text>
		</view>
		<view class="footer"></view>
	</view>
</template>

<script setup>
	import {reactive,onMounted} from 'vue'
	import {reportFormStore} from '@/store/reportFormStore.js'
	
	const store=reportFormStore()
	let Data=reactive({
		data:{},
		list:{}
	}) 
	onMounted(()=>{
		Data.data=store.caseList
		Data.list=store.caseList.patient
		console.log('data',Data.data)
	})
</script>

<style scope lang="less">
	.box{
		width: 750rpx;
		background-color:#fbfdff ;
	}
	.header-box{
		width: 750rpx;
		height: 218rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		padding-top: 20rpx;
	}
	.header{
		width: 688rpx;
		height: 178rpx;
		border-radius: 10rpx;
		background: #f3f8fe;
		display: flex;
		justify-content: center;
		align-items: center;
		.header-content{
			width: 630rpx;
			height: 150rpx;
			display: flex;
			flex-direction: column;
			justify-content: space-between;
			.personal-information{
				width: 630rpx;
				height: 44rpx;
				display: flex;
				justify-content: space-between;
				font-size: 30rpx;
				color: #474848;
			}
			.date,.information{
				font-size: 24rpx;
				color: #acabaa;
			}
			.information text{
				margin-right: 40rpx;
			}
		}
	}

	.content{
		width: 688rpx;
		background-color: white;
		border-radius: 20rpx;
		margin: 0 30rpx;
		box-shadow: 0 0 2px #e0e0e0;
		display: flex;
		flex-direction: column;
		text{
			margin: 22rpx 22rpx;
			font-size: 30rpx;
			color: #555555;
		}
	}
	.footer{
		width: 750rpx;
		height: 300rpx;
	}
</style>
